<template>
    <div class="gathering">
        <div class="data-content">
            <Form :model="formdata" label-position="right" :label-width="160">
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="网站名称设置：" prop="sitename">
                            <Input v-model="formdata.sitename" />
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999 ercode">
                        <p>最长6个字符</p>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="客服QQ设置：" prop="qq">
                            <Input v-model="formdata.qq" />
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999 ercode">
                        <p>	1~16位字符</p>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="客服微信设置：" prop="weixin">
                            <Input v-model="formdata.weixin" />
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999 ercode">
                        <p>	1~16位字符</p>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="客服电话设置：" prop="tel">
                            <Input v-model="formdata.tel" />
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999 ercode">
                        <p>8~16位字符</p>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="交易协议：" prop="license">
                            <Input v-model="formdata.license" type="textarea"/>
                        </FormItem>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="尝试登陆次数：" prop="max_tries">
                            <Input v-model="formdata.max_tries"/>
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999 ercode">
                        <p>当用户输入错误密码达到指定次数即锁定用户</p>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="委托交易数量：" prop="trust_num">
                            <Input v-model="formdata.trust_num"/>
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999 ercode">
                        <p>会员委托买卖交易数量,此数值不能太大否则影响前台速度</p>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="系统维护开关：" prop="system_safeguard">
                            <Select v-model="formdata.system_safeguard" placeholder="">
                                <Option value="open">开启</Option>
                                <Option value="close">关闭</Option>
                            </Select>
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999">
                        <p>开启系统维护后,前台和代理平台不接受用户登陆。</p>
                    </Col>
                </Row>
                <Row type="flex" justify="space-between" class="code-row-bg">
                    <Col span="9">
                        <FormItem label="系统维护说明：" prop="license">
                            <Input v-model="formdata.system_safeguard_direc" type="textarea"/>
                        </FormItem>
                    </Col>
                    <Col span="15" class="c999 ercode">
                        <p>系统维护时页面显示维护公告 (100字符内)</p>
                    </Col>
                </Row>

                <FormItem>
                    <Button type="primary" @click="handleSubmit()" :loading="send_loading">确定</Button>
                </FormItem>

            </Form>

        </div>
    </div>
</template>
<style>
    .gathering .c999 p{
        line-height: 27px;
    }
    .gathering .ivu-form-item{
        margin-bottom: 0;
    }
    .gathering .ivu-input-wrapper ,.gathering .ivu-select{
        width: 250px;
    }
    .gathering textarea.ivu-input{
        height: 100px;
        resize: none;
    }
</style>
<script>
    import WrapperContent from '../../../components/wrapper-content.vue'
    import {
        getUserList,
        getUser,
        getLevelList,
        getPositionList,
        doUserInfo,
        delUser,
        changeUserState
    } from "@/api/user";
    import * as utils from '../../../assets/js/utils'
    import $ from 'jquery'
    import _ from 'lodash'

    export default {
        components: {
            WrapperContent
        },
        data() {
            return {
                loading: false,
                formdata: {
                    sitename:'',
                    qq:'',
                    weixin:'',
                    tel:'',
                    license:'',
                    max_tries:'',
                    trust_num:'',
                    system_safeguard:'close',
                    system_safeguard_direc:'',
                },
                send_loading: false,
            }
        },
        created: function () {
            this.loading = false;
        },
        methods: {
            handleSubmit() {
                this.send_loading = true;
                setTimeout(() => {
                    this.send_loading = false;
                }, 2000)
            },
        }
    }
</script>





























